/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.util.Date;

/**
 *
 * @author VietLH
 */
public class ReportDetails {
    private int reportID;
    private Test test;
    private PatientDetails patientDetails;
    private StaffDetail staffDetail;
    private DoctorDetails doctorDetails;
    private Date testDate;
    private String report;
    private int status;

    public ReportDetails(int reportID, Test test, PatientDetails patientDetails, StaffDetail staffDetail, DoctorDetails doctorDetails, Date testDate, String report, int status) {
        this.test=new Test();
        this.doctorDetails=new DoctorDetails();
        this.patientDetails=new PatientDetails();
        this.staffDetail=new StaffDetail();
        this.reportID = reportID;
        this.test = test;
        this.patientDetails = patientDetails;
        this.staffDetail = staffDetail;
        this.doctorDetails = doctorDetails;
        this.testDate = testDate;
        this.report = report;
        this.status = status;
    }

    public ReportDetails() {
        this.test=new Test();
        this.doctorDetails=new DoctorDetails();
        this.patientDetails=new PatientDetails();
        this.staffDetail=new StaffDetail();
        this.report="";
        this.status=-1;
        this.testDate=new Date();
    }

    @Override
    public String toString(){
        return (this.patientDetails.getpFName()+" "+this.patientDetails.getpLName());
    }
    public DoctorDetails getDoctorDetails() {
        return doctorDetails;
    }

    public void setDoctorDetails(DoctorDetails doctorDetails) {
        this.doctorDetails = doctorDetails;
    }

    public PatientDetails getPatientDetails() {
        return patientDetails;
    }

    public void setPatientDetails(PatientDetails patientDetails) {
        this.patientDetails = patientDetails;
    }

    public String getReport() {
        return report;
    }

    public void setReport(String report) {
        this.report = report;
    }

    public int getReportID() {
        return reportID;
    }

    public void setReportID(int reportID) {
        this.reportID = reportID;
    }

    public StaffDetail getStaffDetail() {
        return staffDetail;
    }

    public void setStaffDetail(StaffDetail staffDetail) {
        this.staffDetail = staffDetail;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getTestDate() {
        return testDate;
    }

    public void setTestDate(Date testDate) {
        this.testDate = testDate;
    }

    public Test getTest() {
        return test;
    }

    public void setTest(Test test) {
        this.test = test;
    }
    
}
